package com.centit.jddtgzsz.po;

import java.util.Date;
import java.sql.Timestamp;
import javax.persistence.Column;


import javax.persistence.Id;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.centit.framework.core.dao.DictionaryMap;


/**
 * create by scaffold 2020-03-10 
 * @author codefan@sina.com
 
  T_JDDT_GZSZ【机队动态监控规则设置表】机队动态监控规则设置表   
*/
@Entity
@Table(name = "T_JDDT_GZSZ")
public class JddtGzsz implements java.io.Serializable {
	private static final long serialVersionUID =  1L;



	/**
	 * REC_ID【主键】 主键 
	 */
	@Id
	@Column(name = "REC_ID")
	
	private String recId;

	/**
	 * JKSXGL_ID【监控事项】 关联监控事项管理表ID 
	 */
	@Column(name = "JKSXGL_ID")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  jksxglId;
	/**
	 * STATUS【是否开启】 0代表关闭，1代表启用 
	 */
	@Column(name = "STATUS")
	@Length(min = 0, max = 2, message = "字段长度不能小于{min}大于{max}")
	private String  status;
	/**
	 * TXTYPE【提醒方式】 提醒方式从数据字典取 
	 */
	@Column(name = "TXTYPE")
	@Length(min = 0, max = 2, message = "字段长度不能小于{min}大于{max}")
	private String  txtype;
	/**
	 * TXDAY【提醒时间区间】 提醒时间区间从数据字典取 
	 */
	@Column(name = "TXDAY")
	@Length(min = 0, max = 11, message = "字段长度不能小于{min}大于{max}")
	private String  txday;
	
	/**
	 * ALARM_Y【提醒时间区间】 黄色预警
	 */
	@Column(name = "ALARM_Y")
	private Integer  alarmY;
	
	/**
	 * ALARM_R【提醒时间区间】 红色预警
	 */
	@Column(name = "ALARM_R")
	private Integer  alarmR;
	
	
	/**
	 * DATA_VALID 数据有效性 T有效 F失效 
	 */
	@Column(name = "DATA_VALID")
	@Length(min = 0, max = 1, message = "字段长度不能小于{min}大于{max}")
	private String  dataValid;
	/**
	 * INS_USERCODE 录入者用户编码 
	 */
	@Column(name = "INS_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  insUsercode;
	/**
	 * INS_TIME 录入时间 
	 */
	@Column(name = "INS_TIME")
	private Date  insTime;
	/**
	 * EDIT_USERCODE 编辑者用户编码 
	 */
	@Column(name = "EDIT_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  editUsercode;
	/**
	 * EDIT_TIME 编辑时间 
	 */
	@Column(name = "EDIT_TIME")
	private Date  editTime;
	/**
	 * DEL_USERCODE 删除人用户编码 
	 */
	@Column(name = "DEL_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  delUsercode;
	/**
	 * DEL_TIME 删除时间 
	 */
	@Column(name = "DEL_TIME")
	private Date  delTime;

	// Constructors
	/** default constructor */
	public JddtGzsz() {
	}
	/** minimal constructor */
	public JddtGzsz(
		String recId		
		) {
	
	
		this.recId = recId;		
			
	}

/** full constructor */
	public JddtGzsz(
	 String recId		
	,String  jksxglId,String  status,String  txtype,String  txday,String  dataValid,String  insUsercode,Date  insTime,String  editUsercode,Date  editTime,String  delUsercode,Date  delTime,Integer alarmY,Integer alarmR) {
	
	
		this.recId = recId;		
	
		this.jksxglId= jksxglId;
		this.status= status;
		this.txtype= txtype;
		this.txday= txday;
		this.dataValid= dataValid;
		this.insUsercode= insUsercode;
		this.insTime= insTime;
		this.editUsercode= editUsercode;
		this.editTime= editTime;
		this.delUsercode= delUsercode;
		this.delTime= delTime;		
		this.alarmR=alarmR;
		this.alarmY=alarmY;
	}
	

  
	public String getRecId() {
		return this.recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	// Property accessors
  
	public String getJksxglId() {
		return this.jksxglId;
	}
	
	public void setJksxglId(String jksxglId) {
		this.jksxglId = jksxglId;
	}
  
	public String getStatus() {
		return this.status;
	}
	
	public void setStatus(String status) {
		this.status = status;
	}
  
	public String getTxtype() {
		return this.txtype;
	}
	
	public void setTxtype(String txtype) {
		this.txtype = txtype;
	}
  
	public String getTxday() {
		return this.txday;
	}
	
	public void setTxday(String txday) {
		this.txday = txday;
	}
  
	public String getDataValid() {
		return this.dataValid;
	}
	
	public void setDataValid(String dataValid) {
		this.dataValid = dataValid;
	}
  
	public String getInsUsercode() {
		return this.insUsercode;
	}
	
	public void setInsUsercode(String insUsercode) {
		this.insUsercode = insUsercode;
	}
  
	public Date getInsTime() {
		return this.insTime;
	}
	
	public void setInsTime(Date insTime) {
		this.insTime = insTime;
	}
  
	public String getEditUsercode() {
		return this.editUsercode;
	}
	
	public void setEditUsercode(String editUsercode) {
		this.editUsercode = editUsercode;
	}
  
	public Date getEditTime() {
		return this.editTime;
	}
	
	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}
  
	public String getDelUsercode() {
		return this.delUsercode;
	}
	
	public void setDelUsercode(String delUsercode) {
		this.delUsercode = delUsercode;
	}
  
	public Date getDelTime() {
		return this.delTime;
	}
	
	public void setDelTime(Date delTime) {
		this.delTime = delTime;
	}

	public Integer getAlarmY() {
		return alarmY;
	}
	public void setAlarmY(Integer alarmY) {
		this.alarmY = alarmY;
	}
	public Integer getAlarmR() {
		return alarmR;
	}
	public void setAlarmR(Integer alarmR) {
		this.alarmR = alarmR;
	}
	public JddtGzsz copy(JddtGzsz other){
  
		this.setRecId(other.getRecId());
  
		this.jksxglId= other.getJksxglId();  
		this.status= other.getStatus();  
		this.txtype= other.getTxtype();  
		this.txday= other.getTxday();  
		this.dataValid= other.getDataValid();  
		this.insUsercode= other.getInsUsercode();  
		this.insTime= other.getInsTime();  
		this.editUsercode= other.getEditUsercode();  
		this.editTime= other.getEditTime();  
		this.delUsercode= other.getDelUsercode();  
		this.delTime= other.getDelTime();
		this.alarmR=other.getAlarmR();
		this.alarmY=other.getAlarmY();
		return this;
	}
	
	public JddtGzsz copyNotNullProperty(JddtGzsz other){
  
	if( other.getRecId() != null){
	this.setRecId(other.getRecId());}
  
		if( other.getJksxglId() != null){
		this.jksxglId= other.getJksxglId();}  
		if( other.getStatus() != null){
		this.status= other.getStatus();}  
		if( other.getTxtype() != null){
		this.txtype= other.getTxtype();}  
		if( other.getTxday() != null){
		this.txday= other.getTxday();}  
		if( other.getDataValid() != null){
		this.dataValid= other.getDataValid();}  
		if( other.getInsUsercode() != null){
		this.insUsercode= other.getInsUsercode();}  
		if( other.getInsTime() != null){
		this.insTime= other.getInsTime();}  
		if( other.getEditUsercode() != null){
		this.editUsercode= other.getEditUsercode();}  
		if( other.getEditTime() != null){
		this.editTime= other.getEditTime();}  
		if( other.getDelUsercode() != null){
		this.delUsercode= other.getDelUsercode();}  
		if( other.getAlarmY() != null){
		this.alarmY= other.getAlarmY();}		
		if( other.getAlarmR() != null){
			this.alarmR= other.getAlarmR();}	
		if( other.getDelTime() != null){
			this.delTime= other.getDelTime();}	
		return this;
	}

	public JddtGzsz clearProperties(){
  
		this.jksxglId= null;  
		this.status= null;  
		this.txtype= null;  
		this.txday= null;  
		this.dataValid= null;  
		this.insUsercode= null;  
		this.insTime= null;  
		this.editUsercode= null;  
		this.editTime= null;  
		this.delUsercode= null;  
		this.delTime= null;
		
		return this;
	}
}
